package com.bbcare.followup.plat.vo.reserve;

import java.util.ArrayList;
import java.util.List;

/**
 * 连续14天的预约。
 */
public class Week2Reservation {
    private Integer curerIdRef;   //治疗师。

    private String curerName;

    private Integer machineIdRef;   //治疗仪ID。
    private String machineName;     //治疗仪名称。

    private List<DailyReservation> reservations = new ArrayList<>();    //连续14天的预约。

    public void addDailyReservation(final DailyReservation dr)   {
        reservations.add(dr);
    }

    public List<DailyReservation> getReservations() {
        return reservations;
    }
    public DailyReservation getDailyByDate(final String date)    {
        for(DailyReservation reservation : this.reservations)   {
            if (reservation.getDate().equalsIgnoreCase(date))   {
                return reservation;
            }
        }
        return null;
    }

    public String getCurerName() {
        return curerName;
    }

    public void setCurerName(String curerName) {
        this.curerName = curerName;
    }

    public Integer getMachineIdRef() {
        return machineIdRef;
    }

    public void setMachineIdRef(Integer machineIdRef) {
        this.machineIdRef = machineIdRef;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }
}
